package com.jielihaofeng.cosmic.event;

import java.util.EventObject;
import java.util.Map;

/**
 * @author Johnnie Wind
 * @description
 * @date 2021/11/29 09:37
 */
public class ClickEvent extends EventObject {

    private static final long serialVersionUID = -1L;

    private Object source;
    private Map<String, Object> paramsMap;

    public ClickEvent(Object source) {
        super(source);
        this.setSource(source);
    }

    public ClickEvent(Object source, Object source1, Map<String, Object> paramsMap) {
        super(source);
        this.paramsMap = paramsMap;
        this.setSource(source);
    }

    @Override
    public Object getSource() {
        return source;
    }

    public void setSource(Object source) {
        this.source = source;
    }

    public Map<String, Object> getParamsMap() {
        return paramsMap;
    }

    public void setParamsMap(Map<String, Object> paramsMap) {
        this.paramsMap = paramsMap;
    }
}
